#ifndef _RMAP_H
#define _RMAP_H

#include <mm/vma.h>
#include <mm/swap.h>
#include <mm/mm.h>

void avm_chain_link(struct vma* vma, struct avm_chain* avc, struct avm* avm);

int try_to_unmap_anon(page_t* page, struct swap_info* swap_info);

int try_to_remap_anon(page_t* page);

int count_ref(uptr vaddr, pg_entry_t pte);

#endif /* _RMAP_H */